// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
/*引入mock的假数据 全局可用*/
import user from './js/user/user.js'


/* 将aixos放入全局使得全局使用 */
import axios from 'axios'
//配置axios的全局基本路径
axios.defaults.baseURL='https://www.fastmock.site/mock/f4ccb3ed4088e0acccbb2d238497e7f7/pethome/'

// 给vue配置拓展属性
Vue.prototype.$http= axios


/* 设置ElementUI到main里面全局适用*/
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';



Vue.use(ElementUI);



Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
